/*
 * @Author: 孙大大
 * @Date: 2022-03-22 09:40:02
 * @LastEditTime: 2022-03-25 10:47:47
 * @FilePath: \vue-admin-template-master\src\api\user.js
 */
import request from "@/utils/request";

export function login(data) {
  return request({
    url: "/sys/login",
    method: "POST",
    data,
  });
}

export function getUserInfo() {
  return request({
    url: "/sys/profile",
    method: "POST",
  });
}

export function getUserDetailById(id) {
  return request({
    url: `/sys/user/${id}`,
  });
}

export function logout() {}
